﻿@namespace MudBlazor
@typeparam T

<TemplateColumn T="T" Tag="@("select-column")" Sortable="false" Resizable="false" ShowColumnOptions="false" HeaderStyle="width:0%"
    Filterable="false" IsEditable="false">
    <HeaderTemplate>
        @if (ShowInHeader)
        {
            <MudCheckBox T="bool" Size="@Size" Value="@context.IsAllSelected" ValueChanged="@context.Actions.SetSelectAllAsync" />
        }
    </HeaderTemplate>
    <CellTemplate>
        <MudCheckBox T="bool" Size="@Size" Value="@context.IsSelected" ValueChanged="@context.Actions.SetSelectedItemAsync" />
    </CellTemplate>
    <FooterTemplate>
        @if (ShowInFooter)
        {
            <MudCheckBox T="bool" Size="@Size" Value="@context.IsAllSelected" ValueChanged="@context.Actions.SetSelectAllAsync" />
        }
    </FooterTemplate>
</TemplateColumn>